package com.googlecode.cswish.model;

import java.util.List;

public class DPageInfo<Map> extends PageInfo<Map> {

	private List<KeyValue> propAndTitles;
	
	private List<KeyValue> mainPropAndTiles;
	
	public DPageInfo() {
		super();
	}
	
	public DPageInfo(List<Map> data, List<KeyValue> properties, List<KeyValue> mainPropAndTiles) {
		super(data);
		
		this.propAndTitles = properties;
		this.mainPropAndTiles = mainPropAndTiles;
	}
	
	public DPageInfo(PageInfo<Map> pageInfo, List<KeyValue> properties) {
		this(pageInfo, properties, null);
	}
	
	public DPageInfo(PageInfo<Map> pageInfo, List<KeyValue> properties, List<KeyValue> mainPropAndTiles) {
		 super.pageNo = pageInfo.getPageNo();
		 super.pageSize = pageInfo.getPageSize();
		 super.totalCount = pageInfo.getTotalCount();
		 super.firstIndex = pageInfo.getFirstIndex();
		 super.data = pageInfo.getData();
		 
		 this.propAndTitles = properties;
		 this.mainPropAndTiles = mainPropAndTiles;
	}
	
	public List<KeyValue> getMainPropAndTiles() {
		return mainPropAndTiles;
	}

	public void setMainPropAndTiles(List<KeyValue> mainPropAndTiles) {
		this.mainPropAndTiles = mainPropAndTiles;
	}

	public List<KeyValue> getProperties() {
		return propAndTitles;
	}

	public void setProperties(List<KeyValue> properties) {
		this.propAndTitles = properties;
	}
}